package cave.nice.testMessage.resources;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;

public class MissingRequiredParameterException extends WebApplicationException {

	private static final long serialVersionUID = -4371361639768529127L;

	public MissingRequiredParameterException(String parameter) {
		super (Response.status(Status.BAD_REQUEST).entity("Required parameter '" + parameter + "' not specified").build());
	}

}
